package com.zky.gulimall.order.feign;

import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description 商品服务
 * @Author 张开源
 * @Date 2022/12/12 4:46
 * @Version 1.0
 **/
@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 根据skuId返回spu信息
     */
    @GetMapping("/product/spuinfo/skuId/{skuId}")
    R spuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
